# 递归添加 aio 所有cpp文件
file(GLOB_RECURSE nas_share_common_srcs *.cpp)

add_library(nas_share_common_obj
    OBJECT
    ${nas_share_common_srcs}
)

target_include_directories(nas_share_common_obj
    PUBLIC
    ${NAS_ROOT_PATH}/src
    ${NAS_ROOT_PATH}/src/common
    ${NAS_SERVICE_ROOT_DIR}
    ${PLUGIN_FRAMEWORK_PATH}/inc
    ${OPENSRC_THRIFT_INC_PATH}
    ${PLUGIN_FRAMEWORK_PATH}/inc/thrift_interface
    ${PLUGIN_FRAMEWORK_PATH}/inc/rpc
    ${PLUGIN_FRAMEWORK_PATH}/inc/common
    ${PLUGIN_FRAMEWORK_PATH}/inc/job
    ${PLUGIN_FRAMEWORK_PATH}/inc/job_mgr
    ${PLUGIN_FRAMEWORK_PATH}/inc/rpc/certificateservice
    ${MODULE_ROOT_PATH}/src/parser
    ${MODULE_ROOT_PATH}/src/
    ${OPEN_SRC_PATH}/jsoncpp_rel/include
    ${OPEN_SRC_PATH}/boost_rel/include
    ${MODULE_PLATFORM_PATH}/SecureCLib_rel/include
    ${OPEN_SRC_PATH}/lsmb2_rel/include
    ${OPEN_SRC_PATH}/lnfs_rel/include
    ${MODULE_ROOT_PATH}/src
    ${MODULE_ROOT_PATH}/src/libsmb_ctx
    ${MODULE_ROOT_PATH}/src/libnfs_ctx
    ${MODULE_ROOT_PATH}/src/threadpool
    ${OPEN_SRC_PATH}/curl_rel/include
)
target_link_libraries(nas_share_common_obj
    PUBLIC
    scanner_interface
    backup_interface
    common_dep
)
